<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //history对象 js对历史记录进行封装的对象

        //前进
        history.forward();

        //后退
        history.back();

        //前进 x 页
        history.go(2);
        //后退 x 页
         history.go(-1)


    </script>
</head>
<body>
    
</body>
</html>